package com.ellricky.baselib.adapter

import com.andr.common.ui.adapter.BaseRecyclerAdapter
import com.andr.common.ui.adapter.SmartViewHolder
import com.ellricky.baselib.R
import com.ellricky.baselib.entity.new.ClubTask

class TaskAdapter : BaseRecyclerAdapter<ClubTask>(R.layout.base_adapter_task) {

    override fun onBindViewHolder(vh: SmartViewHolder, data: ClubTask, p2: Int) {
        vh.text(R.id.tv_num_1, data.total_number.toString())
            .text(R.id.tv_num_2, data.finish_num.toString())
            .text(R.id.tv_num_3, data.finish_ratio.toString())
            .text(R.id.tv_num_4, data.apply_num.toString())
            .text(R.id.tv_num_5, data.finish_apply_num.toString())
            .text(R.id.tv_num_6, data.apply_ratio.toString())
    }
}